Skip to content

fix(control-plane): stabilize v2.4.0 quota, turn-envelope, and capabilities slice (Slice B1) - #9154

Merged
loopx-agent merged 2 commits into
mainfrom
codex/release-2.4.0-control-plane-report-fixes-20261121
Nov 20, 2026
Merged

loopx-agent merged 2 commits into
mainfrom
codex/release-2.4.0-control-plane-report-fixes-20261121

Conversation

@loopx-agent

@loopx-agent loopx-agent commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary (v2.4.0 Control Plane, Capabilities, CLI & Smoke Stabilization — Slice B1)

Fixes genuine control-plane/CLI regressions and updates outdated suite/smoke expectations for shipped LoopX v2.4.0 contracts (loopx_turn_envelope_v1, #9084 undeclared JSON quota packet, #8794 prior-turn closeout, and 2f4c4e92c3 hard-lease fencing), plus fixes both P1 attachCompleteTurnContext findings from exact-head review #pullrequestreview-5999390771.

Core Production Fixes

  • Sealed post-composition Turn context attachment (loopx/control_plane/quota/turn_envelope.ts, loopx/control_plane/quota/turn_envelope.py, loopx/cli_commands/quota.py, loopx/cli_commands/quota_result_delivery.py, loopx/cli_commands/quota_reward_memory.py):
    • Extracted shared sealCompleteTurnDecision in turn_envelope.ts and added attachCompleteTurnContext / attach_complete_turn_context so attach_reward_memory_recall_after_should_run attaches validated context fields cleanly after compose_quota_work_contract without corrupting sealed source_decision_hash / content_hash signatures.
    • P1 [codex] Harden release readiness control plane #1 fix (turn_envelope.ts): Pass combinedTokens (array [] when empty, never undefined) to contextSourceIdentity(source, combinedTokens) so tokenless decisions produce the same identity envelope as composeCompleteTurnDecision and requireCompleteTurnDecision (fixes quota should-run --context-delivery auto).
    • P1 Fix outcome-floor recovery quota contract #2 fix (turn_envelope.ts, turn_envelope.py): Diff contextProjectionChanges against {...payload, ...additions} in evaluateTurnEnvelope and apply edits on {**source, **additions} in Python attach_complete_turn_context so context_additions never roundtrips through JS numbers (preserving exact float(1.0) and arbitrary-precision int such as 2**80).
  • Sync undeclared JSON caller predicate to quota turn-start / live build (loopx/cli_commands/quota_presentation.py, loopx/cli_commands/quota_should_run.py):
    • Factored UNDECLARED_JSON_COMPLETE_TURN_OPTIONS and is_undeclared_json_quota_caller(args, scheduler_context) in quota_presentation.py and applied the same predicate in quota_should_run.py (model_read and complete_context) so undeclared JSON callers stay on the public quota packet instead of requesting Complete Turn context.
  • Partial-namespace CLI request validation (loopx/cli_commands/quota_context.py, loopx/cli_commands/quota_request.py):
    • Used getattr defaults for optional CLI flags so partial argparse.Namespace invocations validate cleanly without AttributeError.
  • Host request-subject scope & clean delegation channel (loopx/cli_commands/turn_decision.py, loopx/control_plane/collaboration/delegation.ts):
    • Threaded iteration_context_policy / session_scope for Codex request_subject host launches in current_turn_host_launch_decision.
    • Cleared selection-specific fields (selection_required, action_portfolio_ref, suggested_action_count) when building delegation request packets in delegationRequestDecision.
  • Scoped user-gate fallback execution preparation & closeout admission (loopx/control_plane/quota/execution_preparation.py, loopx/control_plane/quota/settlement_cli.py):
    • Allowed apply_selected_todo_execution_preparation and quota_rollout_details (delivery_admitted) when an active scoped_user_gate_fallback is admitted via obligation["delivery_allowed"] is True.

Updated Tests & Public Smokes

  • tests/control_plane_ts/turn_envelope.test.ts & tests/control_plane/test_quota_memory_context.py: added regression tests covering tokenless attach_complete_turn_context roundtrip, float(1.0) + 2**80 numeric preservation on source_edits: true, invalid/collision rejections, and live quota should-run --context-delivery auto.
  • examples/control_plane/todo-durability-fixture-smoke.py, examples/explore-result-layer-smoke.py, examples/issue-fix-validated-memory-writeback-smoke.py: updated payload compaction schema expectation, Mermaid node ID assertion, and isolated detached-HEAD recovery fallback without mutating the source checkout.
  • tests/capabilities/test_periodic_report_*.py (4 files) & tests/cli_commands/test_quota_turn_envelope_validation_failure.py: aligned Turn closeout (quota spend-slot), slot spend counts, and partial-namespace validation coverage.
  • tests/control_plane/ (10 modified test modules + 16 downstream modules verified green): aligned loopx_turn_envelope_v1 shapes, cold-path --include-detail (complete_quota=False), lease-fencing order / proof passing on refresh, and progressive acceptance references.

Verification & Qualification (HEAD: 5b5449e8ca, rebased on origin/main 2049e40cf8)

  • Goal Change Quality Receipt (personal-loopx-maintenance): receipt_id=cqr_dd9ce114a7024449de5a, scope_fingerprint=dd9ce114a7024449de5aa72f1c9b9208e8a3d8d688091e85b188c26595ebb77f, decision=pass, receipt_valid=true (0 blockers).
  • loopx canary premerge --from-git-diff --git-diff-base origin/main --goal-id personal-loopx-maintenance: ok: true (19/19 selected passed, 0 failures) (direct_checks 4/4, python_compile 1/1, catalog_canaries 10/10, risk_profile_smokes 8/8, public_boundary 1/1, receipt_valid=true).
  • npm run typecheck:control-plane (tsc --project tsconfig.control-plane.json --noEmit): passed (exit 0).
  • npm run test:control-plane (tests/control_plane_ts/*.test.ts): 6693 passed, 91 skipped (live PostgreSQL tests skipped cleanly when DATABASE_URL is absent), 0 failed.
  • mypy (pyproject.toml [tool.mypy]): Success: no issues found in 17 source files.
  • ruff check tests loopx/canary loopx/control_plane loopx/domain_packs loopx/presentation loopx/cli_commands: All checks passed!.
  • loopx check public boundary scan across 33 changed files: ok: True, errors=0.
  • Re-run pytest after P1 fix on 5b5449e8ca:
    • tests/control_plane/test_quota_memory_context.py, tests/control_plane/test_quota_decision_capture.py, tests/cli_commands/test_quota_turn_envelope_validation_failure.py: 134 passed (0 failed).
  • Modified examples/ smokes on 5b5449e8ca: todo-durability-fixture-smoke.py, explore-result-layer-smoke.py, issue-fix-validated-memory-writeback-smoke.py all passed (plus cli-output-budget-regression-smoke.py inside canary premerge).
  • Pre-P1-patch full Slice B1 pytest batches (verified on base 3144369890 before adding P1 fix to attachCompleteTurnContext):
    • tests/capabilities/ (6 modules incl. test_performance_diagnosis_cli.py) + all tests/cli_commands/: 371 passed (0 failed).
    • tests/control_plane/ batch A (13 modules): 496 passed (0 failed); batch B (13 modules): 526 passed, 10 skipped (0 failed).

Scope Boundary

  • Remaining pre-release failures outside this slice (tests/extensions/*, tests/presentation/*, root tests/test_*, and the remaining unverified tests/control_plane/* tail modules) are intentionally out of scope for Slice B1 and tracked for follow-up slices off origin/main.

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent, Gemini, Google (self_reported)

Request changes conclusion (author-owned PR; GitHub blocks formal self-review)

针对精确头 9154@dc949e699dbbc497b73b7b347936f8f2fdaf9ccd(base main 3144369890eb4be55e0f0c0275825c163c9d8a0c)的独立代码审查与本地实跑验证发现 2 个阻断性 P1 缺陷,均位于新引入的 attachCompleteTurnContext / attach_complete_turn_context 后置封签路径中:在缺少稀疏数值 token 的决策上会生成无法通过 requireCompleteTurnDecision 的损坏信封,且 Python 侧增量附着会把 1.0 浮点与大整数经 JS 数值圆整后破坏签名一致性。其余 4 项生产修复及 18 份测试/smoke 对齐经实测边界合理且未发现回退。


动机 / Motivation

  • 受影响对象与触发任务:启用 reward_memory 或 anti_entropy 上下文钩子的 LoopX Host / Codex App 调度调用方、未声明 --turn-envelope 的 JSON quota should-run 自动化调用方,以及处于 scoped_user_gate_fallback 或 request_subject 委托路由下的 Turn 执行与结算链路。
  • 前后场景与实际代价:以开启 reward_memory 召回并消费完整 Turn 契约的 quota should-run 调用方为例:主干上记忆上下文钩子在 compose_quota_work_contract 之前挂载,可能与签章后的 loopx_turn_envelope_v1 投影错位;本 PR 将钩子后移并通过 attachCompleteTurnContext 重新封签,同时统一未声明 JSON 调用方谓词、补齐部分 argparse.Namespace 默认值、透传 iteration_context_policy/session_scope 与 delegationRequestDecision 清理,并放行已准入的 scoped_user_gate_fallback 硬租约准备与 closeout 读回。
  • 可观测结果与缺陷:4 项外围修复(未声明 JSON 保持 quota_packet、部分 Namespace 校验不抛 AttributeError、current_turn_host_launch_decision 与 delegationRequestDecision 作用域对齐、scoped_user_gate_fallback 准备/closeout 准入)及 18 个测试/smoke 对齐均已验证通过;但核心修复 attachCompleteTurnContext / attach_complete_turn_context 在空 source_number_tokens 载荷或 context_additions 含浮点 1.0 / 大整数时会破坏 loopx_turn_envelope_v1 内容哈希一致性,导致下游验签直接失败。
  • 非目标边界:本 PR 仅处理 Slice B1 范围内的控制面/CLI 回归修复与对应测试/smoke 对齐,不修改 tests/extensions/*、tests/presentation/* 及其他未纳入本批的测试模块,也不扩展新的协议版本或外部存储后端。

由于旧测试集中 quota.compute 恰好为 1.0(携带了一条非空 source_number_tokens),且测试未对空 token 或 context_additions 含精确浮点/大整数的场景调用 attach_complete_turn_context,上述缺陷在现有门禁中均未被捕获。


改动思路 / Approach

本 PR 将改动收敛在五个既存边界内,未新增平行状态机或兼容协议版本:

  1. 后置封签(Post-composition context sealing):从 composeCompleteTurnDecision 抽取 sealCompleteTurnDecision,新增 attachCompleteTurnContext(TS)与 attach_complete_turn_context(Python),在 quota_result_delivery.py 的 compose_quota_work_contract 之后执行 attach_reward_memory_recall_after_should_run,保留 pre_contract_decision 供 recall 查询并尝试重新封签 loopx_turn_envelope_v1。
  2. 未声明 JSON 谓词单一归属:将判定抽为 quota_presentation.py::is_undeclared_json_quota_caller,并在 quota_should_run.py 的 dispatch_quota_turn_start_hooks(model_read)与 execute_quota_should_run(complete_context)共用,确保普通 --format json 不会请求 Complete Turn 上下文。
  3. 局部 Namespace 兼容校验:quota_context.py 与 quota_request.py 将可选参数读取改用 getattr,仅放行缺省可选字段而不吞没缺失 --goal-id、--agent-id 等必选校验错误。
  4. Host / Delegation 作用域对齐:turn_decision.py 补齐 iteration_context_policy 与 session_scope 透传以对齐 turn.py;delegation.ts 清除 agent_channel 上残留的 selection_required、action_portfolio_ref、suggested_action_count。
  5. Scoped Fallback 准备与 Closeout:execution_preparation.py 与 settlement_cli.py 仅在 obligation["delivery_allowed"] is True 且 closeout_required 为真时允许 scoped_user_gate_fallback 准备及落盘租约回执字段。
  • 架构判断:各项修复均复用现有 typed owner:turn_envelope.ts 的 sealCompleteTurnDecision 统一封签边界、quota_presentation.py::is_undeclared_json_quota_caller 统一未声明 JSON 谓词、turn_decision.py 与 delegation.ts 保持单向作用域投影、execution_preparation.py 与 settlement_cli.py 仅在 delivery_allowed is True 时准入准备和租约回执;架构归属合理,但 attachCompleteTurnContext 的边界细节存在实现缺陷。
  • 当前 PR 边界:仅修复 PR #9154 已覆盖的 5 个控制面/CLI 回归点及 18 个受影响测试/smoke 文件;修复 attachCompleteTurnContext 与 attach_complete_turn_context 的空 token 哈希与数值透传缺陷后即可独立合入。

具体改动 / Changes

  • 生产代码(13 个文件):loopx/control_plane/quota/turn_envelope.ts、turn_envelope.py、execution_preparation.py、settlement_cli.py、loopx/control_plane/collaboration/delegation.ts,以及 loopx/cli_commands/ 下 quota.py、quota_context.py、quota_presentation.py、quota_request.py、quota_result_delivery.py、quota_reward_memory.py、quota_should_run.py、turn_decision.py。
  • 测试与公开 Smoke(18 个文件):3 份公开 smoke(todo-durability-fixture-smoke.py、explore-result-layer-smoke.py、issue-fix-validated-memory-writeback-smoke.py)与 15 份 pytest 测试,用于对齐 loopx_turn_envelope_v1、quota spend-slot 结算、Goal 停用注册表迁移及 detached HEAD 隔离克隆。
  • 规格基准:本次 PR 为多模块 v2.4.0 稳定化修复批次,无单一统一书面规格;涉及 loopx_turn_envelope_v1 的签名与完整性约束依据主干既有协议文档 docs/reference/protocols/turn-envelope-v0.md(baseline 3144369890eb4be55e0f0c0275825c163c9d8a0c)及 turn_envelope.ts 既有校验逻辑核验。

关键代码讲解

  1. attachCompleteTurnContext(loopx/control_plane/quota/turn_envelope.ts)[P1 缺陷点]:先用 requireCompleteTurnDecision 验证原包并禁止覆写已有键或系统保留字段,再拼接 source_number_tokens 与 context_addition_tokens。但第 2161–2164 行传入 combinedTokens.length > 0 ? combinedTokens : undefined 给 contextSourceIdentity;当 combinedTokens 为空时,contextSourceIdentity(source, undefined) 生成不含 [, []] 包装的哈希输入,与 composeCompleteTurnDecision(?? [])及 requireCompleteTurnDecision(?? [])不一致,必现 complete Turn decision content integrity mismatch。
  2. attach_complete_turn_context(loopx/control_plane/quota/turn_envelope.py)[P1 缺陷点]:调用 _turn_envelope_result("attach_complete_turn_context", payload=source, context_additions=additions, source_edits=True) 后执行 _apply_context_projection_changes(source, result)。由于 source 尚未包含 additions,TS 侧 contextProjectionChanges(request.payload, result) 会把 additions 中全部字段作为 value 补丁发回 Python,导致 1.0(float)被 JS JSON.parse 变为整数 1、大整数 2**80 被圆整为 1.2089258196146292e+24,从而丢失 addition_tokens 原始数值语义并直接触发下游 assert_complete_turn_decision 验签失败。
  3. is_undeclared_json_quota_caller(loopx/cli_commands/quota_presentation.py):集中定义 UNDECLARED_JSON_COMPLETE_TURN_OPTIONS 并在 quota_should_run.py 两处与 compose_quota_work_contract 复用,经实跑对照:未声明 --format json 维持 schema_version=None 的公开 quota_packet,传入 --turn-envelope 或 --codex-app 时切换至 loopx_turn_envelope_v1。
  4. **current_turn_host_launch_decision(loopx/cli_commands/turn_decision.py)**与 delegationRequestDecision(loopx/control_plane/collaboration/delegation.ts):分别补齐与 turn.py 一致的 iteration_context_policy/session_scope 计算(request_subject 在 Codex 会话宿主固定 "agent")及清除 agent_channel 过期选单字段,防止启动前重校验或委托通道残余选单信息。
  5. apply_selected_todo_execution_preparation 与 quota_rollout_details(execution_preparation.py / settlement_cli.py):严格限定仅在 scoped_user_gate_fallback 且 obligation["delivery_allowed"] is True(以及 closeout_required 为真)时执行硬租约准备和回执字段输出;当 delivery_allowed=False(如 agent_workspace_repair)时仍保持拒绝且不泄露租约准备态。

对主干的风险 / Risks

  • [P1 阻断] 空 source_number_tokens 下 attachCompleteTurnContext 产生自相矛盾的 loopx_turn_envelope_v1:
    • Problem:turn_envelope.ts 第 2161–2164 行在 combinedTokens 为空时将 undefined 传给 contextSourceIdentity,导致计算 source_decision_hash / content_hash 时使用无 [] 后缀的编码,而 requireCompleteTurnDecision(第 1780 行)始终传入 numberTokens ?? []。
    • Evidence:在 exact head dc949e699dbbc497b73b7b347936f8f2fdaf9ccd 上直接验证:(1)Node 实跑 composeCompleteTurnDecision 后接 attachCompleteTurnContext(无浮点 token),requireCompleteTurnDecision(attached) 抛出 EffectRuntimeRequestError: complete Turn decision content integrity mismatch;(2)端到端 CLI 实跑 quota should-run --codex-app(置 quota.compute = 0.5 使 tokens=[] 且开启 reward_memory 召回),默认配置下会先落盘 heartbeat_receipt,随后在递送阶段返回 rc=1、error_code="quota_decision_transport_failed",导致已提交 Turn 无法呈现或消费。
    • Fix:在 loopx/control_plane/quota/turn_envelope.ts 将 combinedTokens.length > 0 ? combinedTokens : undefined 改为直接传入 combinedTokens(空数组 [] 与 composeCompleteTurnDecision、requireCompleteTurnDecision 完全一致),并补充 TS/Python 空 token 单测与 CLI 回归用例。
  • [P1 阻断] attach_complete_turn_context 通过 contextProjectionChanges 经 JS 圆整覆盖新增 Python 数值:
    • Problem:turn_envelope.py 第 345–351 行传入不含 context_additions 的 source 与 source_edits=True,turn_envelope.ts 第 2675–2676 行对比 request.payload 与合并后的 result,将整块 context_additions 经 JS 数值解码回写 Python。
    • Evidence:在 exact head dc949e699dbbc497b73b7b347936f8f2fdaf9ccd 上即使基包带有非空 source_number_tokens([['quota', 'compute'], '1.0']),执行 attach_complete_turn_context(raw, {"post_attach_recall": {"val": 1.0, "big": 2**80}}) 后,返回值中 val 被篡改为 int(1)、big 被圆整为 float(1.2089258196146292e+24),source_number_tokens 丢失 '1.0',随后 assert_complete_turn_decision 立即抛出 EffectRuntimeRejected: complete Turn decision content integrity mismatch。
    • Fix:在 TS evaluateTurnEnvelope 的 attach_complete_turn_context 分支中以 {...request.payload, ...additions} 作为 contextProjectionChanges 的基对象(或仅投影 contract_binding 变更),并在 Python attach_complete_turn_context 中以 base={**source, **additions} 应用变更,保留原始 Python 对象与稀疏数值拼写;同时补全含 1.0 与 2**80 的往返单测。
  • 其余 4 项修复边界核验:is_undeclared_json_quota_caller 的 default_off_isolation 对照、部分 Namespace 校验错误保留(turn-scoped 缺失 --agent-id、should-run 缺失 --goal-id 与非法 --turn-envelope 均仍抛 QuotaCommandValidationError)、delegationRequestDecision 清除 agent_channel 选单字段、scoped_user_gate_fallback 在 delivery_allowed=False 下的负例隔离均已实测通过;全部 31 个改动文件 loopx check 公私边界扫描 0 错误(public_boundary_scan.ok=true)。

我的整体评价 / Verdict

  • 交付与用户体验影响:尽管本 PR 中 4 项独立回归修复与 18 份测试/smoke 对齐工作良好(npm run typecheck:control-plane、npm run test:control-plane 6688 passed / 93 skipped / 0 failed、ruff、mypy、check_rfc_bilingual.py、loopx check 31 文件 0 错误、canary premerge 19 项 selected 检查 0 失败、4 份 smoke 及聚焦 17 模块 pytest 534 passed, 1 skipped (tests/control_plane/test_cli_output_budget.py:2013: Native temp namespace cannot fit the qualified depth-12 layout), 0 failed 均已独立复核通过;本批未涉及渲染 UI,visual_review 为 not_applicable,本次改动仅涉及 CLI、控制面 TypeScript/Python 契约与测试/smoke 脚本,不涉及任何前端渲染页面或 UI 视图。),但核心修复 attachCompleteTurnContext / attach_complete_turn_context 在真实场景(空 source_number_tokens 或 context_additions 含浮点 1.0 / 大整数)下会直接破坏 loopx_turn_envelope_v1 内容哈希并在已落盘 heartbeat_receipt 后阻断递送(long_horizon 与 user_experience 均判定为 regression)。
  • 代码体量与语义对齐:code_volume 为 necessary(兼容边界 retain),change_proportionality 为 proportionate;语义上完全复用现有词表(reuse_existing,未新增公开状态枚举或 schema 版本,无需修改注册表或 RFC)。
  • 复审要求:请修复上述 2 个 P1 缺陷并在 turn_envelope.test.ts 与 test_quota_memory_context.py 补齐无 source_number_tokens、含 1.0 浮点及大整数 context_additions 的端到端验签测试,重跑上述校验后再次提交复审。

English verdict: REQUEST_CHANGES — Head dc949e6 has two confirmed P1 integrity bugs in attachCompleteTurnContext / attach_complete_turn_context that fail requireCompleteTurnDecision on tokenless payloads or float/large-int context additions.

@loopx-agent
loopx-agent force-pushed the codex/release-2.4.0-control-plane-report-fixes-20261121 branch from dc949e6 to 5b5449e Compare November 20, 2026 21:17

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent, Gemini, Google (self_reported)

Approval conclusion (author-owned PR; GitHub blocks formal self-approval)

针对 Round 2 精确头 9154@5b5449e8ca7e7628bb25299409be629d078cbfc1(rebased on main 2049e40cf827c7cfd09ed8c1b464cafaf3ebfc05)的独立复审与全量实跑验证表明:Round 1 提出的 2 个 P1 阻断性完整性缺陷已在最新提交 5b5449e8ca 彻底修复,空 source_number_tokens 往返及 1.0 浮点 / 2**80 大整数保留均已通过直接复现与新增单测/CLI 集成测试验证,原有 4 项生产修复及 20 份测试/smoke 对齐均无回退。


动机 / Motivation

  • 受影响对象与触发任务:启用 reward_memory 或 anti_entropy 上下文钩子的 LoopX Host / Codex App 调度调用方、未声明 --turn-envelope 的 JSON quota should-run 自动化调用方,以及处于 scoped_user_gate_fallback 或 request_subject 委托路由下的 Turn 执行与结算链路。
  • 前后场景与实际代价:以开启 reward_memory 召回并消费完整 Turn 契约的 quota should-run 调用方为例:此前记忆上下文钩子在 compose_quota_work_contract 之前挂载,可能与签章后的 loopx_turn_envelope_v1 投影错位;本 PR 将钩子后移并通过 attachCompleteTurnContext / attach_complete_turn_context 重新封签,在最新头节点修复了空 source_number_tokens 哈希前缀不一致及 source_edits=True 下 JS 数值圆整覆写 1.0 浮点/大整数的两个 P1 缺陷,同时统一未声明 JSON 调用方谓词、补齐部分 argparse.Namespace 默认值、透传 iteration_context_policy/session_scope 与 delegationRequestDecision 选单清理,并放行已准入的 scoped_user_gate_fallback 硬租约准备与 closeout 读回。
  • 可观测结果:精确头 5b5449e8ca 实测全部通过:空 token 负载经 attachCompleteTurnContext(TS 与 Python RPC)以及 CLI --context-delivery off / auto 端到端链路均顺利通过 requireCompleteTurnDecision / assert_complete_turn_decision 验签;context_additions 中的 float(1.0) 与 2**80 精确保留原始 Python 数值类型且在篡改 1.0 -> 1 或 2**80 -> 2**80+1 时立即触发完整性拒绝;其余 4 项生产修复及 20 份测试/smoke 对齐全部验证无回退。
  • 非目标边界:本 PR 仅处理 Slice B1 范围内的控制面/CLI 回归修复与对应测试/smoke 对齐,不修改 tests/extensions/*、tests/presentation/* 及其他未纳入本批的测试模块(Slice B2 已另行处理并合入基线),也不扩展新的协议版本或外部存储后端。

相比 Round 1(dc949e699d),最新提交 5b5449e8ca 补齐了此前因基线测试携带 quota.compute=1.0 而掩盖的两类稀疏数值与空 token 边界用例,并在 tests/control_plane_ts/turn_envelope.test.ts 与 tests/control_plane/test_quota_memory_context.py 固化了端到端防回归测试。


改动思路 / Approach

  1. 后置封签与双 P1 修复(turn_envelope.ts / turn_envelope.py):
    • attachCompleteTurnContext(turn_envelope.ts:2161)改为直接向 contextSourceIdentity(source, combinedTokens) 传入数组 combinedTokens(为空时传 [] 而非 undefined),使计算 source_decision_hash / content_hash 时的编码与 composeCompleteTurnDecision(:2086)和 requireCompleteTurnDecision(:1780)完全一致。
    • evaluateTurnEnvelope(turn_envelope.ts:2670-2676)在 source_edits === true 时以 {...payload, ...additions} 作为 contextProjectionChanges 的基对象,Python attach_complete_turn_context(turn_envelope.py:351)对应以 base={**source, **additions} 应用变更并携带 context_addition_tokens(:113-116),使新增字段不再经由 JS JSON 数值解码回写覆盖,float(1.0) 与 2**80 均原样保留且仍受 assert_complete_turn_decision 严格校验。
  2. 其余 4 项修复边界复用与核验:
    • quota_presentation.py::is_undeclared_json_quota_caller 统一未声明 JSON 谓词并由 quota_should_run.py 复用;
    • quota_context.py 与 quota_request.py 对可选 CLI 字段改用 getattr 默认值而不吞没缺失 --goal-id / --agent-id / 非法参数组合错误;
    • turn_decision.py 与 delegation.ts 对齐 iteration_context_policy/session_scope 透传并清除 agent_channel 过期选单字段;
    • execution_preparation.py 与 settlement_cli.py 严格仅在 obligation["delivery_allowed"] is True(及 closeout_required)时允许 scoped_user_gate_fallback 准备与租约 closeout 字段。
  • 架构判断:全部改动均复用现有 typed owner:turn_envelope.ts 抽取 sealCompleteTurnDecision 并统一让 attachCompleteTurnContext 与 composeCompleteTurnDecision / requireCompleteTurnDecision 共用数组形式的 contextSourceIdentity、diff 基对象 {...payload, ...additions},Python 侧对应复用 _apply_context_projection_changes({**source, **additions}, result);quota_presentation.py::is_undeclared_json_quota_caller 统一未声明 JSON 谓词;turn_decision.py 与 delegation.ts 保持单向作用域投影;execution_preparation.py 与 settlement_cli.py 仅在 delivery_allowed is True 时准入准备和租约回执。无冗余状态层或平行策略。
  • 当前 PR 边界:仅包含 PR #9154 覆盖的 5 个控制面/CLI 回归点、Round 2 的两项 P1 完整性修复及对应 20 个测试/smoke 文件(总计 33 个文件),范围收敛、可独立合入与回滚。

具体改动 / Changes

  • 生产代码(13 个文件,+219/-50):loopx/control_plane/quota/turn_envelope.ts、turn_envelope.py、execution_preparation.py、settlement_cli.py、loopx/control_plane/collaboration/delegation.ts,以及 loopx/cli_commands/ 下 quota.py、quota_context.py、quota_presentation.py、quota_request.py、quota_result_delivery.py、quota_reward_memory.py、quota_should_run.py、turn_decision.py。
  • 测试与公开 Smoke(20 个文件,+340/-102):3 份公开 smoke(todo-durability-fixture-smoke.py、explore-result-layer-smoke.py、issue-fix-validated-memory-writeback-smoke.py)与 17 份测试文件(较 Round 1 新增 tests/control_plane_ts/turn_envelope.test.ts 与 tests/control_plane/test_quota_memory_context.py 的空 token / float(1.0) / 2**80 / --context-delivery auto 防回归用例)。
  • 规格基准:多模块 v2.4.0 稳定化修复批次,无单一统一书面规格;loopx_turn_envelope_v1 完整性与稀疏数值签名契约对照主干既有协议文档 docs/reference/protocols/turn-envelope-v0.md(baseline 2049e40cf827c7cfd09ed8c1b464cafaf3ebfc05)及 turn_envelope.ts 既有校验逻辑核验。

关键代码讲解

  1. attachCompleteTurnContext 空 token 哈希一致性(loopx/control_plane/quota/turn_envelope.ts:2136-2163):先调用 requireCompleteTurnDecision 验证基础包并校验新增键不与保留字段/已有字段冲突,随后 combinedTokens 直接以数组形式传入 contextSourceIdentity(source, combinedTokens) 再交由 sealCompleteTurnDecision 重算双哈希,彻底消除空 token 场景下的 [, []] 编码分叉。
  2. evaluateTurnEnvelope 与 attach_complete_turn_context 保真补丁(turn_envelope.ts:2670-2676、turn_envelope.py:113-116,338-351):TS 侧将 {...payload, ...additions} 作为 contextProjectionChanges 比较基准,仅向 Python 返回 contract_binding 变更;Python 侧 _turn_envelope_result 提取 context_addition_tokens 后以 {**source, **additions} 作为补丁基对象,既保证 1.0(float)与 2**80(int)不退化,又使任意后续篡改(例如将 1.0 改为 int(1) 或修改 2**80)立即在 assert_complete_turn_decision 报错拦截。
  3. Round 1 -> Round 2 增量与 Rebase 审计:git range-diff 确认基础提交 8b8c50ec74 与 Round 1 dc949e699d 改动完全一致(=),新基线 2049e40cf8 已包含 Slice B2 改动,第 2 提交 5b5449e8ca 仅包含针对两项 P1 的最小化修复与对应回归测试,无多余范围扩散。

对主干的风险 / Risks

  • Turn 信封与篡改防御实测:在 5b5449e8ca 上直接重跑此前失败的两组 P1 复现(TS 原生空 token 往返、Python 空 token RPC、CLI --context-delivery off/auto 端到端召回,以及 float(1.0) 与 2**80 附着),全部一次通过且 assert_complete_turn_decision 仍能准确捕获 1.0 -> int(1) 与 2**80 -> 2**80+1 篡改。
  • 边界与回归风险收敛:is_undeclared_json_quota_caller(plain_json -> schema_version=None vs --turn-envelope -> loopx_turn_envelope_v1)、部分 Namespace 校验错误保留、delegationRequestDecision 清理 agent_channel 选单字段、scoped_user_gate_fallback 按 delivery_allowed 门控均已再次实测通过;全部 33 个改动文件 loopx check 公私边界扫描 0 错误(public_boundary_scan.ok=true)。
  • 残留受限维度:Slice B1 范围以外的测试集(tests/extensions/*、tests/presentation/* 等,已于基线合并或独立跟踪)及需要独立外部 PostgreSQL 实例的 TS 集成测试(npm run test:control-plane 中按环境条件跳过的条目)未在本地连接外部数据库执行,属环境预期边界而非本 PR 引入的风险。

我的整体评价 / Verdict

  • 交付与用户体验影响:Round 1 指出的两个 P1 阻断缺陷已在 5b5449e8ca 彻底闭环并由独立复现及新增防回归测试固化;5b5449e8ca 上本地验证全部通过:
    • npm run typecheck:control-plane 通过,npm run test:control-plane:6691 passed, 93 skipped (host/optional-DB/gated integration specs), 0 failed (tests 6784);
    • 靶向 pytest(test_quota_memory_context.py、test_quota_decision_capture.py、test_quota_turn_envelope_validation_failure.py):134 passed, 0 failed;
    • 4 份公开 smoke(todo-durability-fixture-smoke.py、explore-result-layer-smoke.py、issue-fix-validated-memory-writeback-smoke.py、cli-output-budget-regression-smoke.py)全部通过;
    • ruff check、mypy(17 files)、check_rfc_bilingual.py、loopx check(33 files, 0 errors)及 canary premerge 全部 19 项 selected 检查(含 direct_checks 4/4、python_compile 1/1、catalog_canaries 10/10、risk_profile_smokes 8/8、public_boundary 1/1)0 失败。
    • 本批未涉及渲染 UI,visual_review 为 not_applicable:本次改动仅涉及 CLI、控制面 TypeScript/Python 契约与测试/smoke 脚本(33 个文件中无任何前端/UI 视图路径),不涉及任何前端渲染页面或 UI 视图。(unverified_scope: none)。
  • 代码体量与语义对齐:code_volume 为 necessary(兼容边界 retain),change_proportionality 为 proportionate,未新增状态枚举、协议版本或隐式权限。

English verdict: APPROVE — Head 5b5449e resolves both prior P1 attachCompleteTurnContext / attach_complete_turn_context integrity bugs with focused regression tests and passes all local control-plane TS, pytest, smoke, lint, typecheck, and public-boundary checks.

@loopx-agent
loopx-agent merged commit 70f714a into main Nov 20, 2026
16 of 18 checks passed
@loopx-agent
loopx-agent deleted the codex/release-2.4.0-control-plane-report-fixes-20261121 branch November 20, 2026 21:25
loopx-agent added a commit that referenced this pull request Nov 21, 2026
* fix(cli): preserve typed runtime diagnostics in Turn failures

Signed-off-by: LoopX Agent <[email protected]>

* feat(steward): support per-endpoint model preferences and Codex-to-Antigravity failover (#9141)

Signed-off-by: LoopX Agent <[email protected]>

* Keep the prepared Chat adapter available to a retry (#9134)

A failed worker start can finish cleanup after a same-turn retry has
selected the adapter. Keep its lifetime tied to the Session and let
failed dispatch release its own worker registration. The regression
asserts one upstream turn and explicit adapter closure with the Session.

Port the fix from 4453e4bdd77486ec14b952f88ca893310b32e26c.

(cherry picked from commit 173e42b4f051b885c3a3389e1cad9c5722f7b7dd)

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): recover zero-effect monitors and cleared-replan reports (#9143)

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): admit flexible_primary_available executor transitions in conversation_scope (#9145)

Signed-off-by: LoopX Agent <[email protected]>

* Verify quota gate scope through signed lane references (#9101)

* test(quota): verify scoped gates through complete lane references

Signed-off-by: LoopX Agent <[email protected]>

* Test canonical quota gates in both public response modes

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* Test C1 planning and Host input from the original quota capture (#9102)

* Use recorded quota decisions in the no-Todo settlement regression

Signed-off-by: LoopX Agent <[email protected]>

* Exercise the complete Host prompt from the captured quota source

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* Prepare the CLI budget baseline with a private Git index (#9103)

Signed-off-by: LoopX Agent <[email protected]>

* Exercise C1 Goal delivery and bound replan from the saved source (#9104)

Signed-off-by: LoopX Agent <[email protected]>

* Keep long claim overlap scopes on demand (#9086)

* Link long thin-claim overlap lists to their receipts

Signed-off-by: LoopX Agent <[email protected]>

* Read claim overlap details without copying the lease

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(quota): preserve explicit Monitor Todo selection (#9099)

Carry Todo selection provenance into quota admission. Preserve explicit secondary Monitor polling and recovery from previously admitted receipts.

Signed-off-by: LoopX Agent <[email protected]>

* Keep ready Todo scope details on the required context read (#9106)

Signed-off-by: LoopX Agent <[email protected]>

* Fix archive rollback with custom install directories (#9066)

* refactor(core): defer benchmark implementations during capability discovery

Preserve the benchmark toolkit public exports and static types while keeping execution and experiment implementations out of metadata discovery. Qualify source and installed Core paths, and reconcile the paired minimal/Standard RFC boundary without changing activation or authority defaults.

Signed-off-by: cicolord <[email protected]>

* Defer Yardstick evaluation until an enabled Explore read

Signed-off-by: cicolord <[email protected]>

* Omit empty Todo summary lanes from ordinary Worker context

Signed-off-by: cicolord <[email protected]>

* fix(update): honor configured archive directories during rollback

Signed-off-by: LoopX Agent <[email protected]>

* fix(lark): replay recall guard on current main

Signed-off-by: huangruiteng <[email protected]>

* docs: record the verified LoopX 2.3.0 release baseline

Signed-off-by: LoopX Agent <[email protected]>

* Preserve quota spend source when prepared work is admitted

Signed-off-by: LoopX Agent <[email protected]>

* test(quota): qualify native saved complete-Turn checkpoints

Signed-off-by: LoopX Agent <[email protected]>

* Retry cleanup of an owned file mutation marker

Signed-off-by: LoopX Agent <[email protected]>

* Keep synthetic Git-path test data outside the public source scan

Signed-off-by: LoopX Agent <[email protected]>

* fix(quota): share native preparation wait with readiness

Signed-off-by: LoopX Agent <[email protected]>

* fix(doctor): bind package update readback to its Python environment

Signed-off-by: LoopX Agent <[email protected]>

* Keep Doctor discovery separate from service activation

Signed-off-by: LoopX Agent <[email protected]>

* Verify the recorded Python launcher before Doctor probes it

Signed-off-by: LoopX Agent <[email protected]>

* fix(desktop): require runtime qualification for macOS preview updates

Signed-off-by: LoopX Agent <[email protected]>

* fix(quota): reuse replan projection owners during recovery

Signed-off-by: LoopX Agent <[email protected]>

* Qualify Codex 0.169 native context replay on main

Signed-off-by: LoopX Agent <[email protected]>

* Stop regenerating retired quota view aliases

Signed-off-by: LoopX Agent <[email protected]>

* fix: pin deferred native context reads to the original capture

Signed-off-by: LoopX Agent <[email protected]>

* Keep native capture navigation within small output budgets

Signed-off-by: LoopX Agent <[email protected]>

* Retire legacy heartbeat work prompt generation

Signed-off-by: LoopX Agent <[email protected]>

* Capture C1 composition failures as receipt diagnostics

Signed-off-by: LoopX Agent <[email protected]>

* Recover interrupted native Todo readiness from the original Turn

Signed-off-by: LoopX Agent <[email protected]>

* Revalidate the original lease before publishing resumed native context

Signed-off-by: LoopX Agent <[email protected]>

* Fence native readiness publication with the canonical lease writer

Signed-off-by: LoopX Agent <[email protected]>

* fix(scheduler): keep Codex fallback on the original C1 runtime

Signed-off-by: LoopX Agent <[email protected]>

* fix(scheduler): pin the originating fallback launchers

Signed-off-by: LoopX Agent <[email protected]>

* Retire the duplicate Codex App scheduler projection

Signed-off-by: LoopX Agent <[email protected]>

* Seed the recorded scheduler profile in the elapsed-backoff fixture

Signed-off-by: LoopX Agent <[email protected]>

* Verify canonical cadence on refused and settled Turns

Signed-off-by: LoopX Agent <[email protected]>

* Pin named Core commands in saved scheduler fallbacks

Signed-off-by: LoopX Agent <[email protected]>

* fix(research): preserve saved case addresses when a version cannot open

Signed-off-by: LoopX Agent <[email protected]>

* Preserve citation focus after a saved study refresh

Signed-off-by: LoopX Agent <[email protected]>

* Capture authenticated LoopX receipts for Research attention (#8790)

* feat(research): capture authenticated LoopX attention receipts

Signed-off-by: lusendong.6789 <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>

* fix(research): tighten attention receipt provenance

Signed-off-by: lusendong.6789 <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>

* fix(research): publish attention captures after source validation

Signed-off-by: huangruiteng <[email protected]>

---------

Signed-off-by: lusendong.6789 <[email protected]>
Signed-off-by: huangruiteng <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>
Co-authored-by: huangruiteng <[email protected]>

* Recover the original Session and Turn from a confirmed Chat task

Signed-off-by: huangruiteng <[email protected]>

* perf(lark,native_chat): eliminate redundant full-directory JSON reparsing in steward chat loops (#9041)

* perf(lark,native_chat): avoid full directory reparsing in steward chat loops

- Make LarkOwnerAttention._route iterate capture candidates lazily so matching stops at the newest valid p2p capture.
- Reuse FileChatDiscovery in PrivateIngressObserver._records while preserving strict field validation and fail-closed errors.
- Reuse FileChatDiscovery in ChatExternalConversations.pending so unchanged request journals skip redundant JSON reads and stay mutation-isolated.
- Add regression and scan-efficiency tests in tests/test_lark_steward_directory_scan_perf.py.

Signed-off-by: LoopX Agent <[email protected]>

* fix(native-chat): project small recovery metadata fields to stop data_url memory growth

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* Retire transitional smoke checks and duplicate execution (#9073)

Signed-off-by: lusendong.6789 <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>

* feat(steward): support probe-gated generic continuous_monitor todos with handoff and user actions (#9074)

Signed-off-by: LoopX Agent <[email protected]>

* Remove redundant defensive prose from prompts and comments (#9072)

Remove redundant defensive prose while preserving published heartbeat wrappers and externally managed skill readiness.

Validated with 197 related tests, independent historical wrapper migrations and negative cases, installed-skill readback, and current-main quick canary. Existing CI qualification and infrastructure limitations remain recorded in PR #9072.

Signed-off-by: lusendong.6789 <[email protected]>
Signed-off-by: Lusen Dong <[email protected]>

* Keep original Chat retry errors visible during receipt refresh

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): tolerate report validator python drift and allow cancel of mid-turn failed reports (#9077)

Signed-off-by: LoopX Agent <[email protected]>

* feat(steward): add exact-head PR review signals and protected merge confirmation (#9081)

Signed-off-by: LoopX Agent <[email protected]>

* feat(steward): add isolated OpenViking long-term memory with per-speaker boundaries (#9083)

Signed-off-by: LoopX Agent <[email protected]>

* refactor(content-ops): slim surface module and eliminate Any (#8961)

* refactor(content-ops): slim surface module and eliminate Any

Signed-off-by: LoopX Agent <[email protected]>

* fix(content-ops): reject malformed angle source_item_ids containers

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(collaboration): batch handoff query Goal lifetime guard lock per Goal (#9085)

Signed-off-by: LoopX Agent <[email protected]>

* fix(hosts): raise managed service startup readiness timeout to 45s (#9087)

Signed-off-by: LoopX Agent <[email protected]>

* perf(manager-context): memoize history_inspect lifecycle checks and scope runtime revision in handoffs query (#9088)

Eliminate the remaining O(N) Effect runtime RPCs and uncached runtime fingerprinting inside tracking.query(): enter effect_runtime_request_scope() for the query, memoize pure history_inspect lifecycle decisions across entries sharing identical Goal refs while holding the Goal lifetime guard, lazily discover legacy ingress files only when external audience recovery needs them, and preserve entry scan order across Goal batches.

Signed-off-by: LoopX Agent <[email protected]>

* refactor(lark): slim private_conversations below 2000 lines with net LOC reduction (#8929)

Signed-off-by: LoopX Agent <[email protected]>

* perf(chat,hosts): skip frontend source re-hashing on immutable installed releases and extend readiness timeout to 90s (#9089)

Signed-off-by: LoopX Agent <[email protected]>

* refactor(control-plane): split and slim quota monitor_poll_commit (#8885)

* refactor(control-plane): split and slim quota monitor_poll_commit

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): preserve legacy lane budget and observation diagnostic order

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* refactor(quota): slim loopx/quota.py and tighten Any count to zero (#8939)

Signed-off-by: LoopX Agent <[email protected]>

* refactor(native-chat): slim external_conversations below 2k lines and retire ceiling (#8911)

* refactor(native-chat): move steward commission mixin to steward_commands and retire external_conversations ceiling

Signed-off-by: LoopX Agent <[email protected]>

* fix(native-chat): respect include_raw_response in retained result recovery

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* refactor(chat): slim chat_runtime below 1,500 lines, fix entry-point project_contexts guard, and retire ceiling (#8920)

* refactor(chat): move session lifecycle mixin to session_open, deduplicate runtime helpers, and retire ceiling

Signed-off-by: LoopX Agent <[email protected]>

* fix(chat): drop turn_done_events slot before waking waiters on Thread.start failure

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): paginate open PR signal GraphQL, allow signal-unavailable monitor recovery, and cache private delivery scans (#9093)

Signed-off-by: LoopX Agent <[email protected]>

* perf(lark,native_chat): back off noop recovery retries and cache recovery lookups (#9096)

Signed-off-by: LoopX Agent <[email protected]>

* perf(native_chat,lark): cache unchanged quota backlog health and interrupt observations (#9098)

Signed-off-by: LoopX Agent <[email protected]>

* perf(lark,native_chat): coalesce listener snapshots and cache recovery event summaries (#9100)

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: cicolord <[email protected]>
Signed-off-by: LoopX Agent <[email protected]>
Signed-off-by: huangruiteng <[email protected]>
Signed-off-by: lusendong.6789 <[email protected]>
Signed-off-by: Lusen Dong <[email protected]>
Co-authored-by: cicolord <[email protected]>
Co-authored-by: huangruiteng <[email protected]>
Co-authored-by: Lusen Dong <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>

* refactor(issue-fix): consolidate maintainer-correction admission and slim pr_lifecycle (#8897)

Signed-off-by: LoopX Agent <[email protected]>

* Fix truncated requests and responses in the Codex API relay (#8713)

* fix(codex relay): fence incomplete model requests before drain

Signed-off-by: LoopX Agent <[email protected]>

* fix(codex relay): surface incomplete upstream responses

Port the verified response framing fix to the request-admission branch. Original candidate 27bc3aee311cdfc6a00466ff9d3b58c7db36e01b.

Signed-off-by: LoopX Agent <[email protected]>

* Bound Codex relay writes to clients that stop reading

Signed-off-by: LoopX Agent <[email protected]>

* Reject upstream chunked responses missing the trailer terminator

Signed-off-by: LoopX Agent <[email protected]>

* Validate upstream chunk data delimiters before relay completion

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(release): repair dsh closeout test, antigravity failover alias, and release download retry (#9147)

Signed-off-by: LoopX Agent <[email protected]>

* docs(release): update v2.4.0 release notes and dsh-loopx-plugin 0.1.1-beta.7 README (#9149)

Signed-off-by: LoopX Agent <[email protected]>

* fix(chat): recover saved answers and diagnose lost workers (#9120)

* fix(chat): recover saved answers and diagnose lost workers

Signed-off-by: LoopX Agent <[email protected]>

* style(lark): keep private_conversations within module line budget

Signed-off-by: LoopX Agent <[email protected]>

* fix(chat): retain execution_worker_exited in pending backlog count

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(chat): resume steward requests lost before dispatch (#9125)

Signed-off-by: LoopX Agent <[email protected]>

* fix(benchmark): restore frozen v1 archives and align checkpoint/runtime tests with C1 defaults (#9151)

Signed-off-by: LoopX Agent <[email protected]>

* fix(release): stabilize CLI help, architecture guards, onboarding gate, and public smokes (#9152)

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): recover report selection across python upgrades and prevent queue kill on observation monitors (#9155)

Signed-off-by: LoopX Agent <[email protected]>

* fix(release): align extensions, chat, presentation, and transport tests for v2.4.0 (#9156)

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): stabilize v2.4.0 quota, turn-envelope, and capabilities slice (Slice B1) (#9154)

* fix(control-plane): stabilize v2.4.0 quota, turn-envelope, and capabilities slice

Signed-off-by: LoopX Agent <[email protected]>

* fix(quota): preserve tokenless identity and exact numeric types in attach_complete_turn_context

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): recover frozen report contract failures and rebind resumed task leases (#9157)

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): recover pre-dispatch runtime failures across endpoints and stop receipt-unknown disk churn (#9159)

Signed-off-by: LoopX Agent <[email protected]>

* fix(control_plane): align lease recovery, settlement readback, and runtime fixtures (#9158)

* fix(control_plane): align lease recovery, settlement readback, and runtime fixtures

Signed-off-by: LoopX Agent <[email protected]>

* fix(control_plane): forward record_capture in worker outage test and harden version type guard

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): stabilize v2.4.0 explore, context, and checkpoint tail slice (Slice B4) (#9161)

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): stabilize v2.4.0 replan, monitor recovery, and staged-read slice (Slice B5) (#9160)

Signed-off-by: LoopX Agent <[email protected]>

* docs(release): reconcile final v2.4.0 stabilization PRs and boundary wording (#9162)

* docs(release): reconcile final v2.4.0 stabilization PRs and boundary wording

Signed-off-by: LoopX Agent <[email protected]>

* docs(release): align #9158 and #9161 descriptions with verified commits

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): tolerate minor JSON delimiter glitches and recover saved report candidates (#9164)

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): preserve bound yardstick reversals in native replan openings (#9165)

Signed-off-by: LoopX Agent <[email protected]>

* fix(native-chat): recover loopback relay 401 failures and isolate test auth (#9167)

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>
Signed-off-by: cicolord <[email protected]>
Signed-off-by: huangruiteng <[email protected]>
Signed-off-by: lusendong.6789 <[email protected]>
Signed-off-by: Lusen Dong <[email protected]>
Co-authored-by: cicolord <[email protected]>
Co-authored-by: huangruiteng <[email protected]>
Co-authored-by: Lusen Dong <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant